<script>
	export default {
		async onLaunch() {
			await this.initData();
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		},
		methods: {
			// 初始化数据
			async initData() {
				uni.setTabBarStyle({
					selectedColor: this.themeColor.color,
					borderStyle: 'white'
				});
			
				this.themeColor.tabList && this.themeColor.tabList.forEach((selectedIconPath, index) => {
					uni.setTabBarItem({
						index,
						selectedIconPath
					});
				});
			}
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	@import "static/css/main.scss";
	@import "static/css/public.scss";
	/* #ifndef APP-NVUE */
	@import "@/static/css/iconfont/iconfont.css";
	/* #endif */
	
	page {
		background-color: #F8F8F8;
		color: #000000;
		font-family: '方正兰亭细黑_GBK', '方正兰亭粗黑简体', '方正兰亭特黑简体', '方正正粗黑简体';
		/* #ifndef APP-NVUE */
		letter-spacing: 1rpx;
		/* #endif */
		font-size: 28rpx;
	}
	
	/* 全局隐藏滚动条 */
	/* #ifndef APP-NVUE */
	::-webkit-scrollbar {
		width: 0px;
		height: 0px;
		color: transparent;
	}
	/* #endif */
	
	.decorative-dot {
		width: 2px;
		height: 2px;
		border-radius: 50%;
		background-color: #999999;
		margin: 0 5px;
	}
</style>
